<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE html>
<html>

<head>
    <title>襄阳蓝芯智能化办公系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="${pageContext.request.contextPath}/static/bootstrap-3.3.5/css/bootstrap.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/bootstrapvalidator/css/bootstrapValidator.css"
          rel="stylesheet">

    <script src="${pageContext.request.contextPath}/static/jquery/jquery-1.10.2.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/bootstrap-3.3.5/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/bootstrapvalidator/js/bootstrapValidator.js"></script>

    <style>
        /*定义类名为.thead-blue的样式*/
        .thead-blue {
            color: #fff;
            font-weight: bold;
            background-color: #337ab7;
        }
    </style>
</head>
<body>

<div class="panel panel-primary">
    <div class="panel-heading">
        <h4 class="panel-title">资产移动记录</h4>
    </div>
</div>


<!-- 列表 -->
<div class="panel panel-primary">
    <table class="table table-bordered table-hover">
        <thead>
        <tr class="thead-blue" align="center">
            <td>原存放地</td>
            <td>移动目的地</td>
            <td>移动时间</td>
            <td>移动事由</td>
            <td>申请人</td>
            <td>移动人</td>
            <td>备注</td>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${zcAssetmovelogs}" var="log">
            <tr align="center">
                <td>${log.formername}</td>
                <td>${log.targetname}</td>
                <td><fmt:formatDate value="${log.moveDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                <td>${log.movereason}</td>
                <td>${log.zerenrenname}</td>
                <td>${log.handlername}</td>
                <td>${log.remark}</td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>




<div class="col-md-3">
    <button type="button" onclick="location.href='${pageContext.request.contextPath}/zc-asset/tozcassetlist'" class="btn btn-info">返回</button>
</div>


<br>
<br>
<br>







<script type="text/javascript">
    $(document).ajaxError(function(event,xhr) {
        if(xhr.status=="403"){//没有权限
            document.location.href = xhr.getResponseHeader("url");
        }else if(xhr.status!="200"){
            //alert("服务器错误!");
            console.log("服务器错误!");
        }
    });
</script>


</body>
<script type="text/javascript">
    function gotoPage(page,pageSize){
        $("#page").val(page);
        $("#pageSize").val(pageSize);
        $("#seachform").submit();
    }
</script>
</html>
